<!DOCTYPE html>
<html>
<head>
    <title></title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.userName" @on-enter="query" placeholder="名称或者手机号"/>
                </i-col>
                <i-button @click="query">查询</i-button>
            </div>
            <!--#if($shiro.hasPermission("feedback:save"))-->
            <!--<i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>-->
            <!--#end-->
            <!--#if($shiro.hasPermission("feedback:update"))-->
            <!--<i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>-->
            <!--#end-->

            <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</i-button>
           <!-- <div class="buttons-group">
                #if($shiro.hasPermission("feedback:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>-->
        </Row>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="feedback" :rules="ruleValidate" :label-width="150">
        <Form-item label="申诉人" prop="userName">
            <i-input v-model="feedback.userName" placeholder="会员名称" readonly="true"/>
        </Form-item>
        <Form-item label="申诉人手机" prop="mobile">
            <i-input v-model="feedback.mobile" placeholder="手机" readonly="true"/>
        </Form-item>
        <Form-item label="被投诉人手机" prop="mobile">
            <i-input v-model="feedback.tophone" placeholder="被投诉人手机" readonly="true"/>
        </Form-item>
        <Form-item label="订单类型" prop="feedType">
            <i-input v-model="feedback.feedType" placeholder="订单类型" readonly="true"/>
        </Form-item>
        <Form-item label="订单编号" prop="orderno">
            <i-input v-model="feedback.orderno" placeholder="订单编号" readonly="true"/>
        </Form-item>
            <Form-item label="单价" prop="untilprice">
                <i-input v-model="otcTradeorder.untilprice" placeholder="单价" readonly="true"/>
            </Form-item>
            <Form-item label="交易金额" prop="totalmoney">
                <i-input v-model="otcTradeorder.totalmoney" placeholder="交易金额" readonly="true"/>
            </Form-item>
            <Form-item label="数量" prop="number">
                <i-input v-model="otcTradeorder.number" placeholder="数量" readonly="true"/>
            </Form-item>
            <Form-item label="付款方式" prop="paymodel">
                <Radio-group v-model="otcTradeorder.paymodel" readonly="true">
                    <Radio label="0">
                        <span>银行卡</span>
                    </Radio>
                    <Radio label="1">
                        <span>支付宝</span>
                    </Radio>
                    <Radio label="2">
                        <span>微信</span>
                    </Radio>
                </Radio-group>
            </Form-item>
            <Form-item label="溢价比率" prop="premiumrate">
                <i-input v-model="otcTradeorder.premiumrate" placeholder="溢价比率" readonly="true"/>
            </Form-item>
            <Form-item label="购买人姓名" prop="buyusername">
                <i-input v-model="otcTradeorder.buyusername" placeholder="购买人姓名" readonly="true"/>
            </Form-item>
            <Form-item label="购买人手机" prop="buyphone">
                <i-input v-model="otcTradeorder.buyphone" placeholder="购买人手机号" readonly="true"/>
            </Form-item>
            <Form-item label="发单人姓名" prop="sellerusername">
                <i-input v-model="otcTradeorder.sellerusername" placeholder="发单人姓名" readonly="true"/>
            </Form-item>
            <Form-item label="发单人手机" prop="sellerphone">
                <i-input v-model="otcTradeorder.sellerphone" placeholder="发单人手机号" readonly="true"/>
            </Form-item>
            <Form-item label="账号" prop="accountcode">
                <i-input v-model="otcTradeorder.accountcode" placeholder="账号" readonly="true"/>
            </Form-item>
            <Form-item label="开户行" prop="bankopen">
                <i-input v-model="otcTradeorder.bankopen" placeholder="开户行" readonly="true"/>
            </Form-item>
            <Form-item label="收款码" prop="codeurl">
                <i-input v-model="otcTradeorder.codeurl" placeholder="收款码" readonly="true"/>
            </Form-item>
            <Form-item label="参考号" prop="referencenum">
                <i-input v-model="otcTradeorder.referencenum" placeholder="参考号" readonly="true"/>
            </Form-item>
        <Form-item label="申诉图片" prop="picUrl">
            <div class="upload-list" v-for="item in uploadList">
               <img :src="item.picUrl" style="width: 200px"/>
            </div>
        </Form-item>
         <Form-item label="申诉内容" prop="content">
            <i-input type="textarea" :rows="4" v-model="feedback.content" placeholder="申诉内容"  readonly="true"/>
         </Form-item>
          <Form-item label="状态" prop="satatus">
                <Radio-group v-model="feedback.status">
                    <Radio label="2">
                        <span>驳回</span>
                    </Radio>
                    <Radio label="3">
                        <span>强制完成</span>
                    </Radio>
                    <Radio label="4">
                        <span>取消订单</span>
                    </Radio>
                </Radio-group>
          </Form-item>
            <Form-item label="申诉时间" prop="msgTime">
                <Date-picker :value="feedback.addTime"   format="yyyy-MM-dd HH:mm:ss"  placeholder="申诉时间"  readonly="true" />
            </Form-item>
         <Form-item>
            <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
            <i-button type="warning" @click="handleSubmit('formValidate')" style="margin-left: 8px"/>提交</i-button>
         </Form-item>
        </i-form>
    </Card>
</div>

<script src="${rc.contextPath}/js/shop/feedback.js?_${date.systemTime}"></script>
</body>
</html>